<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<sx:head/>
<base href="<%=basePath%>">



</head>

<body>
	<center>
		<div>
			<s:form action="file_add" namespace="/file" method="post" target="_self">
				<s:hidden name="fileinfo.parentid" value="%{fileinfo.fileid}"></s:hidden>
				文件名：<s:textfield name="fileinfo.filename" value=""></s:textfield>
				<br />
				
				位置
				<s:property value="%{fileinfo.filepath}" />\<s:property
					value="%{fileinfo.filename}" />
					 <!-- 文件路径 -->
             <s:hidden name="fileinfo.filepath" value="%{fileinfo.filepath}"></s:hidden>
             <s:hidden name="parentFilename" value="%{fileinfo.filename}"></s:hidden>
					
				<br />
				备注：<s:textarea name="fileinfo.remark" value=""></s:textarea>
				<br />
				<hr />

				<s:hidden name="fileinfo.userinfo.userid"
					value="%{fileinfo.userinfo.userid}"></s:hidden>
				所有者
				<s:property value="%{#session.userinfo.username}" />
				<br />

				<s:iterator value="%{#session.filetypeinfoList}">
					<input type="radio" name="fileinfo.filetypeinfo.filetypeid"
						value='<s:property value="%{filetypeid}"/>' />

					<img width="20px" height="20px"
						src='<s:property value="%{filetypeimage}"/>'>
					<span><s:property value="%{filetypesuffix}" /></span>&nbsp;&nbsp;&nbsp;
				   <s:if test="%{(filetypeid-1)%5==0}">
						<br />
					</s:if>
				</s:iterator>
				<hr />

                <%-- <sx:div id="upload" cssStyle="width:800px;background-color:#eee;" href="/OAProject/admin_cg/fileManage/upload.jsp">
                   <s:file name="file"></s:file>
		           <s:submit value="上传" name="action:file_uploadFile"></s:submit>
                </sx:div> --%>
               <div>
                  <iframe src="<s:property value="%{#session.url}"/>/fileManage/upload.jsp" name="upload" frameborder="0" width="500px" height="60px"></iframe>
               </div>
				
				<hr />

				<%-- <s:submit value="保存退出" name="action:file_add"/> --%>
				
            
			
			 <s:if test="%{#session.where==1}">
			   <s:submit value="保存退出"/>
               <s:a href="/OAProject/file/tree_findChild?fileid=%{fileinfo.fileid}">不保存退出</s:a>
             </s:if>
             <s:else>
               <sx:submit value="保存退出" targets="mod-right"></sx:submit>
               <sx:a href="/OAProject/file/tree_findChild?fileid=%{fileinfo.fileid}" targets="mod-right">不保存退出</sx:a>
             </s:else>
             
             </s:form>
		</div>
	</center>
</body>
</html>
